package com.zshy.base.web.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * web 配置
 * @author zhz
 */
@Data
@ConfigurationProperties(prefix = "zshy.base.base-web")
@Component
public class BaseWebProperties {
    private Mvc mvc = new Mvc();


    @Data
    public static class Mvc {
        /** 日期格式
         *
         */
        private String datePattern = "yyyy-MM-dd";
        /** 时间格式
         *
         */
        private String timePattern = "yyyy-MM-dd HH:mm:ss";
    }

}
